<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-purchaseInfo-add" enctype="multipart/form-data">
            <div class="form-group">	
                <label class="col-sm-3 control-label">名称：</label>
                <div class="col-sm-8">
                    <input id="name" name="name" class="form-control" type="text">
                </div>
            </div> 
            
            <div class="form-group">	
                <label class="col-sm-3 control-label">图片：</label>
                <div class="col-sm-8">	
                	<label class="input-group-btn">
                        <input id="fileImage" type="file" name="fileImage" > <!-- style="margin-left:-9999px; position: absolute;" --> 
                        <span class="btn btn-default">选择文件</span>
                    </label>
                    <br/>
                   	<div id="imgdiv">
                   	</div>
                </div>
            </div> 
            
            <div class="form-group">
               <label class="col-sm-3 control-label">logo：</label>
               <div class="col-sm-8">
                   <div class="input-group">
                       <input id="photoCover" class="form-control" readonly type="text">
                       <label class="input-group-btn">
                           <input id="filePdf" type="file" name="logoUrl" style="margin-left:-9999px; position: absolute;">
                           <span class="btn btn-default">选择文件</span>
                       </label>
                   </div>
               </div>
            </div>
            <div id="showimg" class="form-group" style="display: none;">	
				<label class="col-sm-3 control-label"></label>
				<div class="col-sm-8">
					<img src="" width="400px" height="200px">
				</div>
			</div>
			<div class="form-group">
               <label class="col-sm-3 control-label">pdf地址：</label>
               <div class="col-sm-8">
                   <div class="input-group">
                       <input id="photoCover" class="form-control" readonly type="text">
                       <label class="input-group-btn">
                           <input id="file" type="file" name="pdfUrl" style="margin-left:-9999px; position: absolute;">
                           <span class="btn btn-default">选择文件</span>
                       </label>
                   </div>
               </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">导航地址：</label>
                <div class="col-sm-8">
                    <input id="navigatUrl" name="navigatUrl" class="form-control" type="text">
                </div>
            </div>  
            <div class="form-group">	
                <label class="col-sm-3 control-label">联系电话：</label>
                <div class="col-sm-8">
                    <input id="contactNumber" name="contactNumber" class="form-control" type="text">
                </div>
            </div>  
            <div class="form-group">	
                <label class="col-sm-3 control-label">描述：</label>
                <div class="col-sm-8">
                    <input id="describe" name="describe" class="form-control" type="text">
                </div>
            </div>  
            <div class="form-group">
				<label class="col-sm-3 control-label">状态：</label>
				<div class="col-sm-8" th:with="type=${@dictService.selectDictData('sys_show_hide')}">
					<div th:each="dict : ${type}" th:class="${dict['cssClass']}">
						<input type="radio" th:id="${dict['dictCode']}" name="status" th:value="${dict['dictValue']}" th:checked="${dict['isDefault'] == 'Y' ? true : false}">
						<label th:for="${dict['dictCode']}" th:text="${dict['dictLabel']}"></label>
					</div>
				</div>
			</div>
			 <div class="form-group">	
                <label class="col-sm-3 control-label">所属楼盘：</label>
                <div class="col-sm-8">
                    <input id="projectName" name="projectName" class="form-control" type="text">
                </div>
            </div>  
            <div class="form-group">	
                <label class="col-sm-3 control-label">排序：</label>
                <div class="col-sm-8">
                    <input id="orderBy" name="orderBy" class="form-control" type="number" min="1" max="9999">
                </div>
            </div>  
			<div class="form-group">
				<div class="form-control-static col-sm-offset-9">
					<button type="submit" class="btn btn-primary">提交</button>
					<button th:onclick="'javascript:layer_close()'" class="btn btn-danger" type="button">关闭</button>
				</div>
			</div>
		</form>
	</div>
    <div th:include="include::footer"></div>
    <script th:src="@{/eagledata/business/purchaseInfo/add.js}"></script>
    <script th:src="@{/js/plugins/fileinput/fileinput.min.js}"></script>
    </body>
</html>
